package com.bustle.user.data;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;

@Entity
public class Authentication
{
  public String getLogin()
  {
    return login;
  }

  public void setLogin(String aLogin)
  {
    login = aLogin;
  }

  public String getPassword()
  {
    return password;
  }

  public void setPassword(String aPassword)
  {
    password = aPassword;
  }

  public User getUser()
  {
    return user;
  }

  public void setUser(User aUser)
  {
    user = aUser;
  }

  @Id
  private String login;
  private String password;
  @OneToOne(cascade = CascadeType.ALL)
  private User user;
}